<?php
/*
 * Created on 11 juin 2009
 * Created by Ludovic Reenaers
 * lreenaers@hotmail.com
 */
abstract class Generator implements Dumpable{
	protected $params;
	protected $translator;
	protected $content="";
	protected $error="";
 	function __construct($translator,$params){
 		$this->params=$params;
 		$this->translator = $translator;
 		if($_SESSION["formHasErr"]<>""){
				$this->error .=str_replace(array('{errlabel}','{err}'),array($this->translator->err,$_SESSION["formErr"]),file_get_contents("../html/templates/divErr"));	
		}
 		//$this->setUp();
 	}
 	function setUp(){}
 	function dump(){}
}
?>
